import {Component} from "@angular/core";
import {IonicPage, NavController} from "ionic-angular";
import {DomSanitizer} from "@angular/platform-browser";
import {Events} from "ionic-angular";
import {Network} from "@ionic-native/network";

@IonicPage()
@Component({
    selector: 'page-client-vip-interests',
    templateUrl: 'client-vip-interests.html'
})
export class ClientVipInterestsPage {

    linkAddress: any;
    constructor(private navCtrl: NavController, private sanitizer: DomSanitizer,private events: Events,public network: Network) {
        let net_type = this.network.type;
        if(net_type == "none"){
            this.events.publish("checkNet");
        }else{
            this.linkAddress = this.sanitizer.bypassSecurityTrustResourceUrl('https://www.manutouch.com.cn/wechatmkt/vipintro4app/index.htm');
        }
        // this.linkAddress = this.sanitizer.bypassSecurityTrustResourceUrl('https://www.manutouch.com.cn/reservation/home');
    }

    back() {
        this.navCtrl.pop();
    }
}
